<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8" />
	<title>会员系统管理</title>
	<link href="/public_source/www/images/ico.png" rel="shortcut icon">
	<meta name="keywords" content="会员系统管理" />
	<meta name="description" content="会员系统管理" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link href="/public_source/www/assets/css/bootstrap.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="/public_source/www/assets/css/font-awesome.min.css" />
	<!--[if IE 7]>
		  <link rel="stylesheet" href="/public_source/www/assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
	<!-- page specific plugin styles -->
	<link rel="stylesheet" href="/public_source/www/assets/css/ace.min.css" />
	<link rel="stylesheet" href="/public_source/www/assets/css/ace-rtl.min.css" />
	<link rel="stylesheet" href="/public_source/www/assets/css/ace-skins.min.css" />
	<script src="/public_source/www/assets/js/jquery-1.8.3.min.js"></script>
	<!--[if lte IE 8]>
		  <link rel="stylesheet" href="/public_source/www/assets/css/ace-ie.min.css" />
		<![endif]-->
	<script src="/public_source/www/assets/js/ace-extra.min.js"></script>
	<!--[if lt IE 9]>
		<script src="/public_source/www/assets/js/html5shiv.js"></script>
		<script src="/public_source/www/assets/js/respond.min.js"></script>
		<![endif]-->
	<!-- basic scripts -->
	<!--[if !IE]> -->
	<!-- <![endif]-->
	<!--[if IE]>
		<![endif]-->
	<!--[if !IE]> -->
	<script type="text/javascript">
		window.jQuery || document.write("<script src='/public_source/www/assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
	</script>
	<!-- <![endif]-->
	<!--[if IE]>
		<script type="text/javascript">
		 	window.jQuery || document.write("<script src='/public_source/www/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
		</script>
		<![endif]-->
	<script type="text/javascript">
		if ("ontouchend" in document) document.write("<script src='/public_source/www/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
	</script>
	<script src="/public_source/www/assets/js/bootstrap.min.js"></script>
	<script src="/public_source/www/assets/js/typeahead-bs2.min.js"></script>
	<style>
		a:link {
			text-decoration: none;
		}
	</style>
</head>
</head>

<body>
	<div class="navbar navbar-default" id="navbar">
		<script type="text/javascript">
			try {
				ace.settings.check('navbar', 'fixed')
			} catch (e) {}
		</script>
		<div class="navbar-container" id="navbar-container">
			<div class="navbar-header pull-left">
				<a href="#" class="navbar-brand">
					<small>
						<i class="icon-leaf"></i>
						财神位管理系统
					</small>
				</a><!-- /.brand -->
			</div><!-- /.navbar-header -->
			<div class="navbar-header pull-right" role="navigation">
				<ul class="nav ace-nav">
					<li class="light-blue">
						<a data-toggle="dropdown" href="#" class="dropdown-toggle">
							<img class="nav-user-photo" src="/public_source/www/assets/avatars/bguser.jpg" alt="Jason's Photo" />
							<span class="user-info">
								<small>您好,</small>
								<?php $info = $this->session->userdata('HS_mammon');
								echo $info['admin']['username']; ?>
							</span>
							<i class="icon-caret-down"></i>
						</a>
						<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
							<li>
								<a href="/admin/login/logout">
									<i class="icon-off"></i>退出登录
								</a>
								<a href="/admin/password/index">
									<i class="icon-cog"></i>修改密码
								</a>
							</li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<div class="main-container" id="main-container">
		<script type="text/javascript">
			try {
				ace.settings.check('main-container', 'fixed')
			} catch (e) {}
		</script>
		<div class="main-container-inner">
			<a class="menu-toggler" id="menu-toggler" href="#">
				<span class="menu-text"></span>
			</a>
			<div class="sidebar" id="sidebar">
				<script type="text/javascript">
					try {
						ace.settings.check('sidebar', 'fixed')
					} catch (e) {}
				</script>
				<!-- 栏目列表 -->
				<ul class="nav nav-list">
					<?php if (in_array("welcome", $parent_access)  || !in_array("welcome", $all_node)) { ?>
						<li class="<?php if ($controller == "welcome") echo "active"; ?>">
							<a href="/admin/welcome/index">
								<i class="icon-dashboard"></i>
								<span class="menu-text"> 首页中心</span>
							</a>
						</li>
					<?php } ?>
					<?php if (array_intersect(array("user", "user_level", "user_yeji"), $parent_access)  || !array_intersect(array("user", "user_level", "user_yeji"), $all_node)) { ?>
						<li class="<?php if (in_array($controller, array("user", 'user_level', 'user_yeji'))) echo "active open"; ?>">
							<a href="#" class="dropdown-toggle">
								<i class="icon-user"></i>
								<span class="menu-text">会员管理</span>
								<b class="arrow icon-angle-down"></b>
							</a>
							<ul class="submenu">
								<?php if (in_array('user', $parent_access) || !in_array('user', $all_node)) { ?>
									<li class="<?php if ($controller == "user") echo "active"; ?>">
										<a href="/admin/user/user_list">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('user'); ?>
										</a>
									</li>
								<?php } ?>
								<?php if (in_array('user_level', $parent_access) || !in_array('user_level', $all_node)) { ?>
									<li class="<?php if ($controller == "user_level") echo "active"; ?>">
										<a href="/admin/user_level/index">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('user_level'); ?>
										</a>
									</li>
								<?php } ?>
								<?php if (in_array('user_yeji', $parent_access) || !in_array('user_yeji', $all_node)) { ?>
									<li class="<?php if ($controller == "user_yeji") echo "active"; ?>">
										<a href="/admin/user_yeji/index">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('user_yeji'); ?>
										</a>
									</li>
								<?php } ?>
							</ul>
						</li>
					<?php } ?>
					<?php if (array_intersect(array("statistic", "bonus"), $parent_access)  || !array_intersect(array("user", "bonus"), $all_node)) { ?>
						<li class="<?php if ($controller == "statistic" || $controller == 'bonus') echo "active open"; ?>">
							<a href="#" class="dropdown-toggle">
								<i class="icon-money"></i>
								<span class="menu-text">业绩管理</span>
								<b class="arrow icon-angle-down"></b>
							</a>
							<ul class="submenu">
								<?php if (in_array('statistic', $parent_access) || !in_array('statistic', $all_node)) { ?>
									<li class="<?php if ($controller == "statistic") echo "active"; ?>">
										<a href="/admin/statistic/user_list">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('statistic'); ?>
										</a>
									</li>
								<?php } ?>
								<?php if (in_array('bonus', $parent_access) || !in_array('bonus', $all_node)) { ?>
									<li class="<?php if ($controller == "bonus") echo "active"; ?>">
										<a href="/admin/bonus/user_list">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('bonus'); ?>
										</a>
									</li>
								<?php } ?>
							</ul>
						</li>
					<?php } ?>
					<?php if (array_intersect(array("fora", "fora_index"), $parent_access)) { ?>
						<li class="<?php if ($controller == "fora" || $controller == 'user_level') echo "active open"; ?>">
							<a href="#" class="dropdown-toggle">
								<i class=" icon-inbox"></i>
								<span class="menu-text">供位管理</span>
								<b class="arrow icon-angle-down"></b>
							</a>
							<ul class="submenu">
								<?php if (in_array('fora', $parent_access) || !in_array('fora', $all_node)) { ?>
									<li class="<?php if ($controller == "fora") echo "active"; ?>">
										<a href="/admin/fora/fora_index">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('fora'); ?>
										</a>
									</li>
								<?php } ?>
							</ul>
						</li>
					<?php } ?>

					<?php if (array_intersect(array('admin', 'role', 'node', 'access'), $parent_access)  || !array_intersect(array('admin', 'role', 'node', 'access'), $all_node)) { ?>
						<li class="<?php if ($controller == "admin" || $controller == "role" || $controller == "node" || $controller == "access") echo "active open"; ?>">
							<a href="#" class="dropdown-toggle">
								<i class="icon-key"></i>
								<span class="menu-text">管理员管理</span>
								<b class="arrow icon-angle-down"></b>
							</a>
							<ul class="submenu">
								<?php if (in_array("admin", $parent_access) || !in_array("admin", $all_node)) { ?>
									<li class="<?php if ($controller == "admin") echo "active"; ?>">
										<a href="/admin/admin/admin_list">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('admin'); ?>
										</a>
									</li>
								<?php } ?>
								<?php if (array_intersect(array('role', 'access'), $parent_access) || !array_intersect(array('role', 'access'), $all_node)) { ?>
									<li class="<?php if ($controller == "role" || $controller == "access") echo "active"; ?>">
										<a href="/admin/role/role_list">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('role'); ?>
										</a>
									</li>
								<?php } ?>
								<?php if (in_array("node", $parent_access) || !in_array("node", $all_node)) { ?>
									<li class="<?php if ($controller == "node") echo "active"; ?>">
										<a href="/admin/node/node_list">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('node'); ?>
										</a>
									</li>
								<?php } ?>
							</ul>
						</li>
					<?php } ?>
					<?php if (array_intersect(array('cash', 'money', 'system_money', 'system_zhuan', 'system_money_rizhi'), $parent_access)  || !array_intersect(array('cash', 'money', 'system_money', 'system_zhuan', 'system_money_rizhi'), $all_node)) { ?>
						<li class="<?php if ($controller == "cash" || $controller == 'money' || $controller == 'system_money' || $controller == 'system_zhuan' || $controller == 'system_money_rizhi') echo "active open"; ?>">
							<a href="#" class="dropdown-toggle">
								<i class="icon-file-alt"></i>
								<span class="menu-text">日志管理</span>
								<b class="arrow icon-angle-down"></b>
							</a>

							<ul class="submenu">
								<?php if (in_array("cash", $parent_access) || !in_array("cash", $all_node)) { ?>
									<li class="<?php if ($controller == "cash") echo "active"; ?>">
										<a href="/admin/cash/index">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('cash'); ?>
										</a>
									</li>
								<?php } ?>
								<?php if (in_array("money", $parent_access) || !in_array("money", $all_node)) { ?>
									<li class="<?php if ($controller == "money") echo "active"; ?>">
										<a href="/admin/money/index">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('money'); ?>
										</a>
									</li>
								<?php } ?>
								<?php if (in_array("system_money", $parent_access) || !in_array("system_money", $all_node)) { ?>
									<li class="<?php if ($controller == "system_money") echo "active"; ?>">
										<a href="/admin/system_money/index">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('system_money'); ?>
										</a>
									</li>
								<?php } ?>
								<?php if (in_array("system_zhuan", $parent_access) || !in_array("system_zhuan", $all_node)) { ?>
									<li class="<?php if ($controller == "system_zhuan") echo "active"; ?>">
										<a href="/admin/system_zhuan/index">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('system_zhuan'); ?>
										</a>
									</li>
								<?php } ?>
								<?php if (in_array("system_money_rizhi", $parent_access) || !in_array("system_money_rizhi", $all_node)) { ?>
									<li class="<?php if ($controller == "system_money_rizhi") echo "active"; ?>">
										<a href="/admin/system_money_rizhi/index">
											<i class="icon-double-angle-right"></i>
											<?php echo $this->lang->line('system_money_rizhi'); ?>
										</a>
									</li>
								<?php } ?>
							</ul>
						</li>
					<?php } ?>

				</ul>
				<!-- 栏目列表 END-->
				<div class="sidebar-collapse" id="sidebar-collapse">
					<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
				</div>
				<script type="text/javascript">
					try {
						ace.settings.check('sidebar', 'collapsed')
					} catch (e) {}
				</script>
			</div>